package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Warehouse;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

public interface WarehouseService {
    // 查询
    JSONObject selectWarehouse(Warehouse warehouse);
    // 新增
    JSONObject insertWarehouse(Warehouse warehouse);
    // 修改
    JSONObject updateWarehouse(Warehouse warehouse);
    // 更改状态
    JSONObject definedWarehouse(Long[] warehouseIds, Integer dataState);
    // 查询树
    JSONObject queryTree();

    /**
     * 检查Excel导入字段
     * @param warehouse
     * @return
     */
    String checkNoRepeatExcel(Warehouse warehouse);

    JSONObject updateListWarehouse(List<Warehouse> warehouseList);
}
